package com.zzy.transaction.aop;

import org.springframework.transaction.annotation.AnnotationTransactionAttributeSource;
import org.springframework.transaction.interceptor.TransactionAttribute;

import java.io.Serializable;
import java.lang.reflect.Method;

public class CustomTransactionAttributeSource extends AnnotationTransactionAttributeSource implements Serializable {

    @Override
    public TransactionAttribute findTransactionAttribute(Class<?> clazz) {
        return super.findTransactionAttribute(clazz);
    }

    @Override
    public TransactionAttribute findTransactionAttribute(Method method) {
        return super.findTransactionAttribute(method);
    }
}
